package com.study.leetcode;

import java.util.ArrayList;
import java.util.List;

public class Solution_2194 {
    public List<String> cellsInRange(String s) {
        List<String> result = new ArrayList<>();
        for (char col = s.charAt(0); col <= s.charAt(3); col++) {
            for (char row = s.charAt(1); row <= s.charAt(4); row++) {
                result.add(col + "" + row);
            }
        }
        return result;
    }

    public static void main(String[] args) {
        Solution_2194 solution2194 = new Solution_2194();
        List<String> strings = solution2194.cellsInRange("A1:F1");
        System.out.println("strings = " + strings);
        Integer i = 10;
    }
}
